package com.ybServer.dao;

import com.ybServer.model.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface JoinDAO {
    void addJoinUser(@Param("activityId") long activityId, @Param("userId") long userId) throws Exception;

    List<User> queryJoinUserByActivityId(long activityId) throws Exception;

    int queryJoinUserNumByActivityId(long activityId) throws Exception;

    int hasJoin(@Param("activityId") long activityId, @Param("userId") long userId) throws Exception;

    void exitActivity(@Param("activityId") long activityId, @Param("userId") long userId) throws Exception;
}
